﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Hourglass.Qrobot
{
    internal class RuleConfig
    {
        /// <summary>
        /// 登录二维码状态验证时间间隔，根据网站观察得出结果，单位毫秒
        /// </summary>
        public int LoginQRValidateInternal { get; set; } = 2000;

        /// <summary>
        /// 大部分请求中使用的Referer中的v参数值
        /// </summary>
        public string RefererV1 { get; set; } = "20130916001";

        /// <summary>
        /// 大部分请求中使用的Referer中的v参数的另一个值
        /// </summary>
        public string RefererV2 { get; set; } = "20151105001";

        /// <summary>
        /// 请求参数中ClientId的值
        /// </summary>
        public string ClientId { get; set; } = "53999199";

        /// <summary>
        /// 请求参数中的AppId的值
        /// </summary>
        public string AppId { get; set; } = "501004106";

        /// <summary>
        /// pollmessage返回103时尝试次数
        /// </summary>
        public int OneZeroThreeTimes { get; set; } = 30;

        public static RuleConfig GetConfig()
        {
            return new RuleConfig();
        }
    }
}
